//
//  PANetworkManager.h
//  PAFramework
//
//  Created by Gavin Zhang on 7/17/13.
//  Copyright (c) 2013 Gavin Zhang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"
@class PAHttpRequest;

@protocol PANetworkDelegate <NSObject>
@optional
- (void)paRequestStarted:(NSDictionary *)userInfo;
- (void)paRequestFinished:(NSDictionary *)userInfo;
- (void)paRequestRespons:(NSDictionary *)responsDic userInfo:(NSDictionary *)userInfo;
- (void)paRequestAccurateFailed:(NSInteger)errorCode userInfo:(NSDictionary *)userInfo;
- (void)paRequestTimeout:(NSDictionary *)userInfo;
@end



@interface PANetworkManager : NSObject<ASIHTTPRequestDelegate>

+(PANetworkManager *)sharedInstance;

- (void)reqAsynParamDic:(NSDictionary *)paramDic userInfo:(NSDictionary *)userInfo delegate:(id<PANetworkDelegate>)delegate;

@end
